import { get, post } from "../Util/Fetch"

export const getFinance = async (financeId) => {
    const result = await get(`finance/${financeId}`)
    return result
}

export const createFinance = async (data) => {
    const result = await post('finance', data)
    return result
}

export const addHistory = async (data) => {
    const result = await post('history', data)
    return result
}